package com.qys.livesMall.anchor.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qys.livesMall.anchor.model.dto.lives.sys.QueryLiveRoomDTO;
import com.qys.livesMall.anchor.model.entity.AnchorLivesSession;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 直播场次表 Mapper 接口
 * </p>
 *
 * @author wzy
 * @since 2023-06-26
 */
public interface AnchorLivesSessionMapper extends BaseMapper<AnchorLivesSession> {

    /**
     * 分页查询直播场次
     * @param page
     * @param dto
     * @return
     */
    Page<AnchorLivesSession> selectAllRoomPage(Page<AnchorLivesSession> page, @Param("dto") QueryLiveRoomDTO dto);

    /**
     * 随机获取一条水军消息
     * @param type
     * @return
     */
    String randomMessage(int type);
}
